﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Parameter
{
  public  class OutputParameter
    {
      public  static int MaxValue(int[] Array, out int maxIndex)
        {
            int maxValue =  Array[0];
            maxIndex = 0;
            for (int i = 0; i <  Array.Length; i++)
            {
                if (  Array[i] > maxValue)
                {
                    maxValue =  Array[i];
                    maxIndex = i;
                }
            }
            return maxValue;
        }
        }
    }
